package org.example.info;

public class TableResult<T> {
    private Integer total;
    private Integer page;
    private Integer size;
    private T result;

    public TableResult(Integer total, Integer page, Integer size, T data) {
        this.total = total;
        this.page = page;
        this.size = size;
        this.result = data;
    }

    @Override
    public String toString() {
        return "TableResult{" +
                "total=" + total +
                ", page=" + page +
                ", size=" + size +
                ", result=" + result +
                '}';
    }
}
